<!DOCTYPE HTML PUBLIC "-//ORA//DTD CD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>[Chapter 17] SimpleTimeZone</TITLE>
<META NAME="author" CONTENT="Mark Grand and Jonathan Knudsen">
<META NAME="date" CONTENT="Fri Aug  8 17:44:03 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java">
<META NAME="title" CONTENT="Java Fundamental Classes Reference">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java Fundamental Classes Reference" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch17_20.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 17<br>The java.util Package</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch17_22.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>SimpleTimeZone</H1>

<H2>Name</H2>

SimpleTimeZone

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.148">Synopsis</A></h2>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Class Name:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.util.SimpleTimeZone</tt>

<p>
<DT CLASS=varlistentry>Superclass:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.util.TimeZone</tt>

<p>
<DT CLASS=varlistentry>Immediate Subclasses:<br>
<DD>

<P CLASS=para>
None

<p>
<DT CLASS=varlistentry>Interfaces Implemented:<br>
<DD>

<P CLASS=para>
None

<p>
<DT CLASS=varlistentry>Availability:<br>
<DD>

<P CLASS=para>
New as of JDK 1.1 </DL>
</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.149">Description</A></h2>

<P CLASS=para>
The <tt CLASS=literal>SimpleTimeZone</tt> class is 
a concrete subclass of the <tt CLASS=literal>abstract</tt> 
<tt CLASS=literal>TimeZone</tt> class. 
<tt CLASS=literal>SimpleTimeZone</tt> represents 
a time zone offset for use with <tt CLASS=literal>GregorianCalendar</tt>. 
<tt CLASS=literal>SimpleTimeZone</tt> does 
not take into account the historical vicissitudes of daylight savings time, 
however. Instead, it assumes that the shifts to and from daylight savings 
time always occur at the same time of the year. 

<P CLASS=para>
Normally, <tt CLASS=literal>SimpleTimeZone</tt> 
objects are not created directly, but instead obtained 
by calling <tt CLASS=literal>TimeZone.getDefault()</tt>. 
This method creates a subclass of <tt CLASS=literal>TimeZone</tt> 
that is appropriate for the current locale. You can also call <tt CLASS=literal>TimeZone.getTimeZone()</tt> 
to obtain a <tt CLASS=literal>TimeZone</tt> object 
for a specific time zone. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.150">Class Summary</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public class java.util.SimpleTimeZone extends java.util.TimeZone {
  // Constructors
  public SimpleTimeZone(int rawOffset, String ID);
  public SimpleTimeZone(int rawOffset, String ID, int startMonth, 
                       int startDayOfWeekInMonth, int startDayOfWeek, 
                       int startTime, int endMonth, int endDayOfWeekInMonth,
                       int endDayOfWeek, int endTime);
  // Instance Methods
  public Object clone();
  public boolean equals(Object obj); 
  public int getOffset(int era, int year, int month, int day, 
                      int dayOfWeek, int millis); 
  public int getRawOffset();
  public synchronized int hashCode();
  public boolean inDaylightTime(Date date); 
  public void setEndRule(int month, int dayOfWeekInMonth, 
                        int dayOfWeek, int time);
  public void setRawOffset(int offsetMillis); 
  public void setStartRule(int month, int dayOfWeekInMonth, 
                          int dayOfWeek, int time);
  public void setStartYear(int year);
  public boolean useDaylightTime();
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.151">Constructors</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.246">SimpleTimeZone</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.280">public SimpleTimeZone(int rawOffset, String ID)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>rawOffset</tt><br>
<DD>

<P CLASS=para>
The raw offset of this time zone from GMT, in milliseconds.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>ID</tt><br>
<DD>

<P CLASS=para>
The ID of this time zone. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This constructor creates a <tt CLASS=literal>SimpleTimeZone</tt> 
that uses the given offset from GMT and has the specified ID. This constructor 
creates a <tt CLASS=literal>SimpleTimeZone</tt> that 
does not use daylight savings time. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.281"><DIV CLASS=screen> <P> <PRE> public SimpleTimeZone(int rawOffset, String ID, int startMonth, int startDayOfWeekInMonth, int startDayOfWeek, int startTime, int endMonth, int endDayOfWeekInMonth, int endDayOfWeek, int endTime) </PRE> </DIV></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>rawOffset</tt><br>
<DD>

<P CLASS=para>
The raw offset of this time zone from GMT, in milliseconds.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>ID</tt><br>
<DD>

<P CLASS=para>
The ID of this time 
zone.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>startMonth</tt><br>
<DD>

<P CLASS=para>
The month when 
daylight savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>startDayOfWeekInMonth</tt><br>
<DD>

<P CLASS=para>
The week in the month when daylight savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>startDayOfWeek</tt><br>
<DD>

<P CLASS=para>
The day 
of the week when daylight savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>startTime</tt><br>
<DD>

<P CLASS=para>
The time of day 
when daylight savings time begins, in milliseconds.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>endMonth</tt><br>
<DD>

<P CLASS=para>
The month when 
daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>endDayOfWeekInMonth</tt><br>
<DD>

<P CLASS=para>
The week in the month when daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>endDayOfWeek</tt><br>
<DD>

<P CLASS=para>
The day of 
the week when daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>endTime</tt><br>
<DD>

<P CLASS=para>
The time of day 
when daylight savings time ends, in milliseconds. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This constructor creates a <tt CLASS=literal>SimpleTimeZone</tt> 
that uses the given offset from GMT, has the specified ID, and uses daylight 
savings time. Daylight savings time begins and ends at the specified dates 
and times.

<P CLASS=para>
For example, Brazil Eastern Time (BET) is three hours behind GMT. Daylight 
savings time for BET starts on the first Sunday in April at 2:00 AM, and 
ends on the last Sunday in October, also at 2:00 A.M. To construct a <tt CLASS=literal>TimeZone</tt> 
that represents BET, you would use the following:
<DIV CLASS=screen>
<P>
<PRE>
new SimpleTimeZone(-3 * 60 * 60 * 1000, "BET",
                  Calendar.APRIL, 1, 
                  Calendar.SUNDAY, 2 * 60 * 60 * 1000,
                  Calendar.OCTOBER, -1,
                  Calendar.SUNDAY, 2 * 60 * 60 * 1000)
</PRE>
</DIV>

</DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.152">Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.247">clone</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.282">public Object clone()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
A copy of this <tt CLASS=literal>SimpleTimeZone</tt>. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.clone()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method creates a copy of this <tt CLASS=literal>SimpleTimeZone</tt> 
and returns it. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.248">equals</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.283">public boolean equals(Object obj)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>obj</tt><br>
<DD>

<P CLASS=para>
The object to be compared 
with this object. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if the objects are equal; 
<tt CLASS=literal>false</tt> if they are not. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Object.equals()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns <tt CLASS=literal>true</tt> if 
<tt CLASS=literal>obj</tt> is an instance of <tt CLASS=literal>SimpleTimeZone</tt>, 
and it contains the same value as the object this method is associated 
with. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.249">getOffset</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.284"><DIV CLASS=screen> <P> <PRE> public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) </PRE> </DIV></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>era</tt><br>
<DD>

<P CLASS=para>
The era.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>year</tt><br>
<DD>

<P CLASS=para>
The year.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>month</tt><br>
<DD>

<P CLASS=para>
The month.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>day</tt><br>
<DD>

<P CLASS=para>
The day.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>dayOfWeek</tt><br>
<DD>

<P CLASS=para>
The day of the 
week.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>millis</tt><br>
<DD>

<P CLASS=para>
The time of day 
in milliseconds. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
An offset from GMT, in milliseconds. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.getOffset()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method calculates an offset from GMT for the given date for this <tt CLASS=literal>SimpleTimeZone</tt>. 
In other words, the offset takes daylight savings time into account. The 
return value should be added to GMT to get local time. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.250">getRawOffset</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.285">public int getRawOffset()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
An offset from GMT, in milliseconds. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.getRawOffset()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns the raw offset from GMT for this <tt CLASS=literal>SimpleTimeZone</tt>. 
In other words, the offset does not take daylight savings time into account. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.251">hashCode</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.286">public synchronized int hashCode()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
A hashcode for this SimpleTimeZone. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Object.hashCode()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns a hashcode for this object. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.252">inDaylightTime</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.287">public boolean inDaylightTime(Date date)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>date</tt><br>
<DD>

<P CLASS=para>
The date to be tested. </DL>
<p>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if the given date is between 
the start and end of daylight savings time for this <tt CLASS=literal>SimpleTimeZone</tt>; 
<tt CLASS=literal>false</tt> otherwise. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.inDaylightTime()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns a <tt CLASS=literal>boolean</tt> 
value that indicates if the given date is in daylight savings time for 
this <tt CLASS=literal>SimpleTimeZone</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.253">setEndRule</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.288"><DIV CLASS=screen> <P> <PRE> public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) </PRE> </DIV></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>month</tt><br>
<DD>

<P CLASS=para>
The month when daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>DayOfWeekInMonth</tt><br>
<DD>

<P CLASS=para>
The week of the month when daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>dayOfWeek</tt><br>
<DD>

<P CLASS=para>
The day of the week when daylight savings time ends.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>time</tt><br>
<DD>

<P CLASS=para>
The time of day when daylight savings time ends, in milliseconds. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method sets the time when daylight savings time ends for this <tt CLASS=literal>SimpleTimeZone</tt>. 
For example, to set the end of daylight savings time to 2 A.M. on
the last Sunday 
in October, you would use the following: 

<DIV CLASS=screen>
<P>
<PRE>
setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 
           2 * 60 * 60 * 1000)
</PRE>
</DIV>

</DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.254">setRawOffset</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.289">public void setRawOffset(int offsetMillis)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>offsetMillis</tt><br>
<DD>

<P CLASS=para>
The new raw 
offset from GMT, in milliseconds. </DL>
<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.setRawOffset()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method is used to set the raw offset value for this <tt CLASS=literal>SimpleTimeZone</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.255">setStartRule</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.290"><DIV CLASS=screen> <P> <PRE> public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) </PRE> </DIV></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>month</tt><br>
<DD>

<P CLASS=para>
The month when daylight 
savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>DayOfWeekInMonth</tt><br>
<DD>

<P CLASS=para>
The week of the month when daylight savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>dayOfWeek</tt><br>
<DD>

<P CLASS=para>
The day of the week when daylight savings time begins.

<p>
<DT CLASS=varlistentry><tt CLASS=literal>time</tt><br>
<DD>

<P CLASS=para>
The time of day when daylight savings time begins, in milliseconds. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method sets the time when daylight savings time begins for this <tt CLASS=literal>SimpleTimeZone</tt>. 
For example, to set the beginning of daylight savings time to 2 A.M. on
the first 
Sunday in April, you would use the following: 

<DIV CLASS=screen>
<P>
<PRE>
setEndRule(Calendar.APRIL, 1, Calendar.SUNDAY, 
           2 * 60 * 60 * 1000)
</PRE>
</DIV>

</DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.256">setStartYear</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.291">public void setStartYear(int year)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><tt CLASS=literal>year</tt><br>
<DD>

<P CLASS=para>
The year when daylight 
savings time begins. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method sets the year after which the start and end rules for daylight 
savings time are observed. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="ch17-REFSECT2-AUTOID.257">useDaylightTime</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="ch17-REFSECT3-AUTOID.292">public boolean useDaylightTime()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if this <tt CLASS=literal>SimpleTimeZone</tt> 
uses daylight savings time; <tt CLASS=literal>false</tt> 
otherwise. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>TimeZone.useDaylightTime()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
This method returns a <tt CLASS=literal>boolean</tt> 
value that indicates whether or not this <tt CLASS=literal>SimpleTimeZone</tt> 
uses daylight savings time. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.153">Inherited Methods</A></h2>

<DIV CLASS=informaltable>
<P>
<TABLE CLASS=INFORMALTABLE>
<TR CLASS=row>
<TH ALIGN="left">Method</TH>
<TH ALIGN="left">Inherited From</TH>
<TH ALIGN="left">Method</TH>
<TH ALIGN="left">Inherited From</TH>
</TR>
<TR CLASS=row>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>finalize()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>getClass()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
</TR>
<TR CLASS=row>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>getID()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>TimeZone</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>notify()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
</TR>
<TR CLASS=row>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>notifyAll()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>setID()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>TimeZone</tt></TD>
</TR>
<TR CLASS=row>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>toString()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>wait()</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
</TR>
<TR CLASS=row>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>wait(long)</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>wait(long, int)</tt></TD>
<TD ALIGN="left">

<P CLASS=para>
<tt CLASS=literal>Object</tt></TD>
</TR>
</TABLE>
<P>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.154">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>Calendar</tt>, 
<tt CLASS=literal>Cloneable</tt>, 
<tt CLASS=literal>Date</tt>, 
<tt CLASS=literal>GregorianCalendar</tt>, 
<tt CLASS=literal>Locale</tt>, 
<tt CLASS=literal>TimeZone</tt> 
</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch17_20.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch17_22.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>ResourceBundle</td>
<td width=171 align=center valign=top><a href="index/idx_0.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>Stack</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
